package ModelLayer;
import java.util.Date;
/**
 * Abstract class Person - write a description of the class here
 * 
 * @author (your name here)
 * @version (version number or date here)
 */
public abstract class Person
{
    private int id;
    private String name;
    private String address;
    private String postCode;
    private String phone;
    private String email;
    private Date date;

    public Person(int id, String name, String address, String postCode, String phone, String email)
    {
        this.id = id;
        this.name = name;
        this.address = address;
        this.postCode = postCode;
        this.phone = phone;
        this.email = email;
        this.date = new Date();
    }
    
    //get methods
    public int getId(){
        return id;
    }
    public String getName(){
        return name;
    }
    public String getAddress(){
        return address;
    }
    public String getPostCode(){
        return postCode;
    }
    public String getPhone(){
        return phone;
    }
    public String getEmail(){
        return email;
    }
    public Date getDate() { return date; }
    
    //set methods
    public void setId(int id){
        this.id = id;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setAddress(String address){
        this.address = address;
    }
    public void setPostCode(String postCode){
        this.postCode = postCode;
    }
    public void setPhone(String phone){
        this.phone = phone;
    }
    public void setEmail(String email){
        this.email = email;
    }
}
